﻿<UserControl x:Class="TestApp.X3DImportTest"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:kitControls="clr-namespace:Kit3D.Windows.Controls;assembly=Blend3D"
    xmlns:kitMedia="clr-namespace:Kit3D.Windows.Media.Media3D;assembly=Blend3D"
    xmlns:local="clr-namespace:TestApp"
    MinWidth="400" MinHeight="400">
    <Grid Background="White">
        <kitControls:Viewport3D x:Name="viewport" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <kitControls:Viewport3D.Camera>
                <kitMedia:PerspectiveCamera Position="-5,15,25" LookDirection="5,-15,-25" UpDirection="0,1,0" FieldOfView="45"/>
            </kitControls:Viewport3D.Camera>
            <kitControls:Viewport3D.Children>
                <!--Change the below DesignTimePath to see the model in the designer (rebuild may be required)-->
                <kitMedia:X3DModelVisual3D Source="SimpleCube.x3d" DesignTimePath="C:\Path\to\CSharp\Kit3D\Kit3DTestApp" />
            </kitControls:Viewport3D.Children>
        </kitControls:Viewport3D>
    </Grid>
</UserControl>
